#ifndef TREEVIEWADAPTER_H
#define TREEVIEWADAPTER_H

#include "./polygondata/polygondataiterators.h"
#include "db/qsqlrelationaltablemodelwithreconnection.h"

#include<QStandardItemModel>
#include<QStandardItem>
#include<QSqlRecord>
#include<QSqlIndex>

class TreeViewAdapter:public QStandardItemModel
{
public:
    TreeViewAdapter();
    void addFromIterator(QString header, ElementIterator *iterator);
};

#endif // TREEVIEWADAPTER_H
